//
//  AMdiscoverTableViewController.m
//  AMwb
//
//  Created by zhc on 15/11/28.
//  Copyright © 2015年 zhc. All rights reserved.
//

#import "AMdiscoverTableViewController.h"
#import "AMSearchBar.h"

@interface AMdiscoverTableViewController ()

@end

@implementation AMdiscoverTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    
//    UISearchBar *serchBar=[[UISearchBar alloc]init];
//    
//    serchBar.scopeBarBackgroundImage=[UIImage imageNamed:@"searchbar_textfield_background"];
//    

//    自定义搜索框
    
    UITextField *searchBar=[AMSearchBar searchBar];
    //CGSize size=searchBar.frame.size;
    
     searchBar.frame=CGRectMake(0, 0, 300, 30);
    
     self.navigationItem.titleView=searchBar;
    
    
    
    
}


#pragma mark - Table view data source



@end
